import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import installElementPlus from './plugins/element'
import axios from 'axios'
const app = createApp(App)
installElementPlus(app)
const baseURL = "http://localhost:4000"
axios.defaults.baseURL = baseURL
axios.defaults.withCredentials = true // 携带cookie
app.config.globalProperties.$axios = axios // 添加到实例中，在页面使用$axios 来使用axios
app.use(store).use(router).mixin({
  data(){
    return{
      baseURL
    }
  }
}).mount('#app')